﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Devsoft.Utilities
{
    /// <summary>
    /// 
    /// </summary>
    public class Version
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static string GetVersion()
        {
            var asm = System.Reflection.Assembly.GetEntryAssembly();
            var name = asm.GetName();
            System.Version v = System.Reflection.Assembly.GetEntryAssembly().GetName().Version;
            return string.Format("{0}.{1}{2} (r{3})", v.Major, v.Minor, (char)(64 + v.Build), v.Revision);
        }
    }
}
